<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="Step 2: Manually Configuring Soft Links">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="mysql-0011.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="30-OceanProtect Appliance 1.5.0-1.6.0 Help Center">
  <meta name="DC.Publisher" content="20241029">
  <meta name="documenttype" content="usermanual">
  <meta name="prodname" content="csbs">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="mysql-0016">
  <meta name="DC.Language" content="en-us">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>Step 2: Manually Configuring Soft Links</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="mysql-0016"></a><a name="mysql-0016"></a>
  <h1 class="topictitle1">Step 2: Manually Configuring Soft Links</h1>
  <div>
   <p>Before executing a backup job, you need to register MariaDB/GreatSQL as the system service. For MySQL/MariaDB/GreatSQL, you need to manually configure the soft links of <strong>mysqlbinlog</strong>, <strong>mysqldump</strong>, <strong>mysqld</strong>, <strong>mysqladmin</strong>, and <strong>mysql</strong> on all nodes.</p>
   <div class="section">
    <h4 class="sectiontitle">Procedure</h4>
    <ol>
     <li><span>Log in to the host where the <span>MySQL/MariaDB/GreatSQL</span> instance is located.</span></li>
     <li><span>Run the <strong>systemctl status mysqld</strong> or <strong>service mysqld status</strong> command to check the running status of the <span>MySQL/MariaDB/GreatSQL</span> instance.</span><p></p>
      <ul>
       <li>If the running status is displayed in the command output (The command output may vary depending on the version. Command output example: <strong>active(running)</strong>.), MariaDB/GreatSQL has been registered as a system service. In this case, go to <a href="#mysql-0016__li9580114917475">4</a>.</li>
       <li>If no running status is displayed in the command output:
        <ul>
         <li>MySQL: Ensure that you can log in to the MySQL service.</li>
         <li>MariaDB/GreatSQL: Run the <strong>cp </strong><em>Installation directory</em><strong>/mysql.server</strong><strong><em> </em>/etc/init.d/mysql</strong> command to register the database as a system service. Replace <em>Installation directory</em> with the MariaDB/GreatSQL installation directory.</li>
        </ul></li>
      </ul> <p></p></li>
     <li><span>Run the following commands in sequence to set the soft links:</span><p></p><pre class="screen">ln -sf <em>Installation directory</em>/bin/mysqlbinlog /usr/bin/
ln -sf <em>Installation directory</em>/bin/mysql /usr/bin/
ln -sf <em>Installation directory</em>/bin/mysqldump /usr/bin/
ln -sf <em>Installation directory</em>/bin/mysqld /usr/bin/
ln -sf <em>Installation directory</em>/bin/mysqladmin /usr/bin/</pre> <p></p></li>
     <li id="mysql-0016__li9580114917475"><a name="mysql-0016__li9580114917475"></a><a name="li9580114917475"></a><span>Run the following commands in sequence to check whether the soft links have been set. If the version number information is displayed, the soft links have been set successfully.</span><p></p><pre class="screen">mysqlbinlog --version
mysqldump --version
mysqld --version
mysql --version
mysqladmin --version</pre> <p></p></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>Parent topic:</strong> <a href="mysql-0011.html">Backing Up the MySQL/MariaDB/GreatSQL Database</a>
    </div>
   </div>
  </div>
 </body>
</html>